package com.czxy.demo01;

public class Test08 {
    public static void main(String[] args) {
        int [] arr = {88,96,97,74,90,58,77,90,99};

        show(arr);
    }

    public static void show(int[]arr){
        int min = arr[0];
        int sum = 0;
        for (int i = 0; i <arr.length ; i++) {
            if(arr[0]>arr[i]){
                min=arr[i];
            }
            sum+=arr[i];
        }
        int avg = (sum-min/arr.length-2);
        System.out.println(avg);

    }
}
